package org.example.booksmanagementsystem.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.booksmanagementsystem.model.BookInfo;

import java.util.List;

@Mapper
public interface RedisMapper {

    //加载redis中的数据
    @Select("select id,book_name,author,count,price,publish,status," +
            "create_time,update_time from book_info "+
            "where status =3  order by id asc "
    )
    List<BookInfo> getBookInfoList();
}
